import Vue from 'vue';
import Vuex from 'vuex';

// 持久化
import pluginPereist from './pluginPereist';

// 仓库模块
import userData from './modules/userData';
import pageModule from './modules/pageModule';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {},
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    userData,
    pageModule
  },
  plugins: [
    pluginPereist
  ]
});
